<template>
    
        
        <div  style="margin-left:100px; margin-top:100px;">
            <div align='center'><h1>这里是用户首页</h1></div>
            <el-input placeholder="请输入激活用户邮箱" v-model="email"></el-input>
            <el-button v-on:click='dian'>用户激活</el-button>
        </div>
        
    

</template>

<script>

        import Cookies from 'js-cookie'

        export default {
            data () {
                return {
                    msg: "这是一个变量",
                    dataList:[],

                    email:'',

                    clicked:0,
                    upath: '',
                result: '',
                uping:0
                }
                },
                methods:{
                    dian(){
                    //定义url
                    let url =  this.base_url + '/user/get_email'

                    //定义中介：因为向异步框架发送请求
                    var _this = this

                    var data = {
                        'email':this.email
                    }
                    
                    //使用axios发送异步请求
                    this.axios.post(url,this.qs.stringify(data))
                         console.log('ok')
                      },
                }
        }

</script>

<style>

</style>
